package com.monkey.thread;

/**
 * @Author MonkeyBrother
 * @Date 2020/12/14 22:28
 * @Desc
 **/
public class ShareThread01 implements Runnable{
    private Share share;
    public ShareThread01(Share share) {
        this.share = share;
    }
    @Override
    public void run() {
        for (int i = 0; i < 5000; i++) {
            share.decrement();
        }
    }
}
